using XNode;
using AI.FSM;
// using AI.FSM.Builder;

namespace AI.FSM.Builder
{
    [CreateNodeMenu("FSM/Transition/Always")]
    public class AlwaysTransitionGrapNode : FSMTransitionGraphNode
    {
        public override FSMTransition<T> Build<T>(int targetIndex)
        {
            return new FSMTransition<T>
            {
                Condition = (T agent) => true,
                TargetState = targetIndex
            };
        }
    }
}